multi-segment coupled pendulum